package com.ruoyi.lynhgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lynhgl.mapper.TbLynhglLssjcxMapper;
import com.ruoyi.lynhgl.domain.TbLynhglLssjcx;
import com.ruoyi.lynhgl.service.ITbLynhglLssjcxService;

/**
 * 历史数据查询Service业务层处理
 * 
 * @author hc
 * @date 2023-11-10
 */
@Service
public class TbLynhglLssjcxServiceImpl implements ITbLynhglLssjcxService 
{
    @Autowired
    private TbLynhglLssjcxMapper tbLynhglLssjcxMapper;

    /**
     * 查询历史数据查询
     * 
     * @param id 历史数据查询主键
     * @return 历史数据查询
     */
    @Override
    public TbLynhglLssjcx selectTbLynhglLssjcxById(Long id)
    {
        return tbLynhglLssjcxMapper.selectTbLynhglLssjcxById(id);
    }

    /**
     * 查询历史数据查询列表
     * 
     * @param tbLynhglLssjcx 历史数据查询
     * @return 历史数据查询
     */
    @Override
    public List<TbLynhglLssjcx> selectTbLynhglLssjcxList(TbLynhglLssjcx tbLynhglLssjcx)
    {
        return tbLynhglLssjcxMapper.selectTbLynhglLssjcxList(tbLynhglLssjcx);
    }

    /**
     * 新增历史数据查询
     * 
     * @param tbLynhglLssjcx 历史数据查询
     * @return 结果
     */
    @Override
    public int insertTbLynhglLssjcx(TbLynhglLssjcx tbLynhglLssjcx)
    {
        return tbLynhglLssjcxMapper.insertTbLynhglLssjcx(tbLynhglLssjcx);
    }

    /**
     * 修改历史数据查询
     * 
     * @param tbLynhglLssjcx 历史数据查询
     * @return 结果
     */
    @Override
    public int updateTbLynhglLssjcx(TbLynhglLssjcx tbLynhglLssjcx)
    {
        return tbLynhglLssjcxMapper.updateTbLynhglLssjcx(tbLynhglLssjcx);
    }

    /**
     * 批量删除历史数据查询
     * 
     * @param ids 需要删除的历史数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglLssjcxByIds(Long[] ids)
    {
        return tbLynhglLssjcxMapper.deleteTbLynhglLssjcxByIds(ids);
    }

    /**
     * 删除历史数据查询信息
     * 
     * @param id 历史数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglLssjcxById(Long id)
    {
        return tbLynhglLssjcxMapper.deleteTbLynhglLssjcxById(id);
    }
}
